package com.sba.core.service;

import org.springframework.data.domain.Page;

import com.sba.core.domain.Organization;

/**
 * 
 * @author feiliming
 *
 */
public interface OrganizationService extends BaseService<Organization>{
	
	Organization getById(Long id);

	Page<Organization> getOrganizations(int limit, int offset);
	Page<Organization> getOrganizationsByNameLike(String name, int limit, int offset);
	
	Page<Organization> getOrganizationsByParentId(Long parentId, int limit, int offset);
	Page<Organization> getOrganizationsByparentIdAndNameLike(Long parentId, String name, int limit, int offset);
	
	Page<Organization> getOrganizationsByOrganizationType(String organizationType, int limit, int offset);
	Page<Organization> getOrganizationsByOrganizationTypeAndNameLike(String organizationType, String name, int limit, int offset);
	
}
